home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / ripem.faq < prev    next >
Encoding:
Internet Message Format  |  1994-01-18  |  18.3 KB

  1. Subject: RIPEM Frequently Asked Questions
  2. Newsgroups: alt.security.ripem,sci.crypt,comp.security.misc,alt.security,alt.privacy,comp.mail.misc,alt.answers,comp.answers,news.answers,ac.c.690.crypt
  3. From: Marc VanHeyningen <mvanheyn@cs.indiana.edu>
  4. Date: Mon, 17 Jan 1994 21:59:00 GMT
  5.  
  6. Archive-name: ripem/faq
  7. Last-update: 13 Nov 93 22:00:00 -0500
  8.  
  9. ABOUT THIS POSTING
  10. ------------------
  11. This is a listing of likely questions and information about RIPEM, a
  12. program for public key mail encryption.  It (this FAQ, not RIPEM) was
  13. written and will be maintained by Marc VanHeyningen
  14. <mvanheyn@cs.indiana.edu>.  It will be posted to a variety of
  15. newsgroups; follow-up discussion specific to RIPEM is redirected to
  16. the group alt.security.ripem.
  17.  
  18. DISCLAIMER
  19. ----------
  20. Nothing in this FAQ should be considered legal advice, or anything
  21. other than one layperson's opinion.  If you want real legal advice,
  22. talk to a real lawyer, preferably one with experience in patent law,
  23. export regulations, or whatever area of law is in question.  Nothing
  24. that I say should be considered the opinions of Indiana University or
  25. the Computer Science Department; likewise, opinions of other persons
  26. quoted in this document should be considered their own, which may or
  27. may not represent the opinions of their affiliated institutions.
  28.  
  29. LIST OF QUESTIONS
  30. -----------------
  31. 1)  What is RIPEM?
  32. 2)  How can I get RIPEM?
  33. 3)  Will RIPEM run on my machine?
  34. 4)  Will RIPEM work with my mailer?
  35. 5)  What is RSA?
  36. 6)  What is DES?
  37. 7)  What is a fingerprint, like MD5?
  38. 8)  What is PEM?
  39. 9)  What's this about distributing and authenticating keys?
  40. 10)  Isn't it a bad idea to use patented algorithms in standards like PEM?
  41. 11)  What about RSADSI/PKP?
  42. 12)  Why do all RIPEM public keys look very similar?
  43. 13)  What is PGP?
  44. 14)  What about RPEM?
  45. 15)  What is MIME?
  46. 16)  What is TIS/PEM?
  47.  
  48. QUESTIONS AND ANSWERS
  49. ---------------------
  50.  
  51. 1)  What is RIPEM?
  52.  
  53.  Riordan's Internet Privacy Enhanced Mail (RIPEM) is a (not yet
  54.  complete, but useful) implementation of Privacy Enhanced Mail (PEM).
  55.  RIPEM allows your electronic mail to have the four security
  56.  facilities provided by PEM: disclosure protection (optional),
  57.  originator authenticity, message integrity measures, and
  58.  non-repudiation of origin (always).  (See: "What is PEM?")
  59.  
  60.  RIPEM was written primarily by Mark Riordan <mrr@scss3.cl.msu.edu>.
  61.  Most of the code is in the public domain, except for the RSA routines,
  62.  which are a library called RSAREF licensed from RSA Data Security Inc.
  63.  
  64.  The current version of RIPEM is 1.1a; the current version of the
  65.  Macintosh port of RIPEM is 0.8b1.
  66.  
  67. 2)  How can I get RIPEM?
  68.  
  69.  RIPEM uses the library of cryptographic routines RSAREF, which is
  70.  considered munitions and thus is export-restricted from distribution
  71.  to persons who are not citizens or permanent residents in the U.S or
  72.  Canada without an export license.  No such license has been obtained
  73.  (nor would one likely be granted unless the RSA key exchange were
  74.  shortened to 512 bits and the symmetric cipher changed to something
  75.  weaker than DES.  There were some suggestions that this situation may
  76.  change now that Clinton is in office, but that is looking less and
  77.  less likely.)  The author requests in the README file that this law
  78.  not be violated:
  79.  
  80.  #Please do not export the cryptographic code in this distribution
  81.  #outside of the USA or Canada.  This is a personal request from me,
  82.  #the author of RIPEM, and a condition of your use of RIPEM.
  83.  #I don't agree with US export restrictions, but I intend to comply.
  84.  
  85.  Note that RSAREF is not in the public domain, and a license for it is
  86.  included with the distribution.  You should read it before using
  87.  RIPEM.
  88.  
  89.  RIPEM is available via anonymous FTP to citizens and permanent
  90.  residents in the U.S. from rsa.com; cd to rsaref/ and read the README
  91.  file for info.  Note that the non-RSAREF portion of RIPEM is not a
  92.  product of RSA Data Security, Incorporated; they merely are helping
  93.  distribute it.
  94.  
  95.  RIPEM, as well as some other crypt stuff, has its "home site" on
  96.  ripem.msu.edu, which is open to non-anonymous FTP for users in the
  97.  U.S. and Canada who are citizens or permanent residents.  To find out
  98.  how to obtain access, FTP there, cd to pub/crypt/, and read the file
  99.  GETTING_ACCESS.  For convenience, binaries for many architectures are
  100.  available here in addition to the full source tree.
  101.  
  102. 3)  Will RIPEM run on my machine?
  103.  
  104.  Probably.  The standard RIPEM has been ported to MS-DOS, Macintosh,
  105.  OS/2, Windows NT, and many UNIX systems including NeXT, SunOS,
  106.  Solaris, ULTRIX, AIX, HP/UX, Irix, MPIS RISC/os, V/88, Apollo, SCO,
  107.  386BSD, Linux, ESIX...
  108.  
  109.  In addition to the standard Mac port, a particularly nice version,
  110.  written by Raymond Lau (author of StuffIt) is available.
  111.  
  112. 4)  Will RIPEM work with my mailer?
  113.  
  114.  Probably.  How easy and clean the effective interface is will depend
  115.  on the sophistication and modularity of the mailer, though.  The users
  116.  guide, included with the distribution, discusses ways to use RIPEM
  117.  with many popular mailers, including Berkeley, mush, Elm, and MH.
  118.  Code is also included in elisp to allow easy use of RIPEM inside GNU
  119.  Emacs.
  120.  
  121.  If you make a new interface for RIPEM or create an improvement on one
  122.  in the distribution which you believe is convenient to use, secure,
  123.  and may be useful to others, feel free to post it to alt.security.ripem.
  124.  
  125. 5)  What is RSA?
  126.  
  127.  RSA is a crypto system which is asymmetric, or public-key.  This means
  128.  that there are two different, related keys: one to encrypt and one to
  129.  decrypt.  Because one cannot (reasonably) be derived from the other,
  130.  you may publish your encryption, or public, key widely and keep your
  131.  decryption, or private, key to yourself.  Anyone can use your public
  132.  key to encrypt a message, but only you hold the private key needed to
  133.  decrypt it.  Note that the "message" sent with RSA is normally just
  134.  the DES key to the real plaintext. (See "What is DES?")
  135.  
  136.  Note that the above only provides for disclosure protection.  For
  137.  originator authenticity, message integrity, and non-repudiation of
  138.  origin services to be implemented, the fingerprint of the message
  139.  (See "What is a fingerprint, like MD5?") is encrypted with the
  140.  sender's private key.  The recipient, or a dispute-resolving
  141.  authority, can use the sender's public key to decrypt it and confirm
  142.  that the message must have come from the sender and was not altered.
  143.  
  144.  RSA was named for the three men (Rivest, Shamir and Adleman) who
  145.  invented it.  To find out lots more about RSA and modern cryptography
  146.  in general, ftp to rsa.com and look in pub/faq/.  Some information
  147.  also may be in sci.crypt.
  148.  
  149. 6)  What is DES?
  150.  
  151.  DES is the Data Encryption Standard, a widely used symmetric, or
  152.  secret-key, crypto system.  Unlike RSA, DES uses the same key to
  153.  encrypt and decrypt messages.  However, DES is much faster than RSA.
  154.  
  155.  RIPEM uses both DES and RSA; it generates a random key and encrypts
  156.  your mail with DES using that key.  It then encrypts that key with the
  157.  recipient's public RSA key and includes the result in the letter,
  158.  allowing the recipient to recover the DES key.
  159.  
  160.  DES is sometimes considered weak because it is somewhat old and uses a
  161.  key length considered too short by modern standards.  However, it
  162.  should be reasonably safe against an opponent smaller than a large
  163.  corporation or government agency.  RIPEM 1.1 includes support for
  164.  triple-DES using EDE; however, this isn't really supported by the PEM
  165.  spec yet, so it should be used in cases where security is more
  166.  important than interoperability.
  167.  
  168. 7)  What is a fingerprint, like MD5?
  169.  
  170.  MD5 is a message digest algorithm produced by RSA Data Security Inc.
  171.  It provides a 128-bit fingerprint, or cryptographically secure hash,
  172.  of the plaintext.  It is cryptographically secure because it is not
  173.  possible (in a reasonable amount of computation) to produce a
  174.  different plaintext which produces the same fingerprint.  Thus,
  175.  instead of signing the entire message with the sender's private key,
  176.  only the MD5 of the message needs to be signed for authentication.
  177.  
  178.  MD5s can also be exchanged directly for authentication; for example,
  179.  RIPEM public keys include an MD5 of the public key in the file, so
  180.  parties wishing to confirm their keys are authentic via a separate
  181.  channel merely need exchange MD5s of keys and verify their accuracy.
  182.  
  183.  MD5 is sometimes used for other purposes; for example, it is often
  184.  used to map an input of arbitrary length to 128 bits of data, as a
  185.  passphrase interpreter or cookie generator.
  186.  
  187.  MD5 is described in its entirety (including an implementation in C) in
  188.  RFC 1321.
  189.  
  190.  There have been some recent suggestions that MD5 may not be as strong
  191.  a hash as was originally believed; however, thus far it is still
  192.  regarded as secure.
  193.  
  194. 8)  What is PEM?
  195.  
  196.  PEM is Privacy Enhanced Mail, a standard for allowing transfer of
  197.  encrypted electronic mail generated over a long period of time by a
  198.  working group of experts.  It is described in RFCs 1421-1424; these
  199.  documents have been approved and obsolete the old RFCs 1113-1115.
  200.  
  201.  RIPEM is not really a complete implementation of PEM, because PEM
  202.  specifies certificates for authenticating keys, which RIPEM does not
  203.  handle at this time.  Their addition is planned.  They have already
  204.  been added to the Macintosh version.
  205.  
  206.  A good technical introduction to PEM is in the August 1993 issue of
  207.  _Communications of the ACM_ (Vol. 38, No. 8, page 48.)
  208.  
  209. 9)  What's this about distributing and authenticating keys?
  210.  
  211.  For a remote user to be able to send secure mail to you, she must know
  212.  your public key.  For you to be able to confirm that the message
  213.  received came from her, you must know her public key.  It is important
  214.  that this information be accurate; if a "bad guy" convinces her that
  215.  his key is in fact yours, she will send messages which he can read.
  216.  
  217.  RIPEM allows for three methods of key management: a central server,
  218.  the distributed finger servers, and a flat file.  All three are
  219.  described in the RIPEM users guide which is part of the distribution.
  220.  None of them provide perfect security.  The PEM standard calls for
  221.  key management by certificates; the addition of this feature to RIPEM
  222.  is planned, but the hierarchy of certifying authorities is still
  223.  developing and thus few people have certificates yet.
  224.  
  225. 10)  Isn't it a bad idea to use patented algorithms in standards like PEM?
  226.  
  227.  This issue has been considered in the standards process.  RFC 1310,
  228.  the specification for Internet standards, has a discussion (section
  229.  6) on what specifications for nondiscriminatory availability must be
  230.  met for a patented method to be included in a standard.  RFC 1421
  231.  addresses this issue with regard to the patents covering public-key
  232.  cryptography.
  233.  
  234.  Of course, not everyone agrees that this is the best way to handle
  235.  patents and standards.  As is usual for USENET, discussions usually
  236.  produce a lot more heat than light.  The RSA FAQ referenced above
  237.  includes some (now slightly dated) discussion; the LPF archive (in
  238.  ftp.uu.net:/doc/lpf among other places) also includes some (dated)
  239.  material on it.
  240.  
  241. 11)  What about RSADSI/PKP?
  242.  
  243.  RSA Data Security, Inc. (RSADSI) is a California-based company
  244.  specializing in cryptographic technologies.  Public Key Partners
  245.  (PKP) is a firm which holds exclusive sub-licensing rights of the
  246.  following U.S. patents and all of their corresponding foreign
  247.  patents:
  248.  
  249.       Cryptographic Apparatus and Method
  250.       ("Diffie-Hellman")............................... No. 4,200,770
  251.  
  252.       Public Key Cryptographic Apparatus
  253.       and Method ("Hellman-Merkle").................... No. 4,218,582
  254.  
  255.       Cryptographic Communications System and
  256.       Method ("RSA")................................... No. 4,405,829
  257.  
  258.       Exponential Cryptographic Apparatus
  259.       and Method ("Hellman-Pohlig").................... No. 4,424,414
  260.  
  261.  PKP claims their patents cover all known methods of public key
  262.  cryptography.  PKP and RSADSI are rather closely related (for
  263.  example, the same person, Jim Bidzos, is president of both of them.)
  264.  PKP has licensed this technology to a considerable number of
  265.  companies (IBM, DEC, Motorola, AT&T, Lotus...) for use in their
  266.  products.  PKP has also threatened and filed lawsuits defending their
  267.  patents.
  268.  
  269.  RIPEM was originally created with no connection to RSADSI other than
  270.  its use of the RSAREF library, and for no reason other than its
  271.  author's desire to see widespread use of public-key cryptography.
  272.  However, after the ball started rolling, people at RSADSI got
  273.  interested.  RSADSI decided to carry RIPEM on its FTP site, and some
  274.  people there started making their own RIPEM keys.  RSADSI and RIPEM's
  275.  developers share the goal of improving RSAREF; its performance has
  276.  been enhanced substantially by various optimizations, including
  277.  hand-hacking critical portions in assembler, and improvements are
  278.  continuing.  RIPEM even won the "Best Application Built on RSAREF in
  279.  1992" award.
  280.  
  281. 12)  Why do all RIPEM public keys look very similar?
  282.  
  283.  RIPEM public keys begin with a PKCS (Public-Key Cryptography
  284.  Standards) identifier describing various characteristics about the
  285.  key, so the first bunch of characters in your key may be the same as
  286.  those of lots of other people's keys.  This does not mean your keys
  287.  are similar, but only that they are the same class of key, were
  288.  generated with the same program, are of the same length, etc.
  289.  
  290. 13)  What is PGP?
  291.  
  292.  PGP is another cryptographic mail program called Pretty Good Privacy.
  293.  PGP has been around longer than RIPEM, and works somewhat differently.
  294.  PGP is not compatible with RIPEM in any way, though PGP does also use RSA.
  295.  
  296.  A few major differences between PGP and RIPEM:
  297.  
  298.  * PGP has more key management features for users without a direct
  299.    network connection.  Its key verification mechanism is readily
  300.    non-hierarchical, which means it's more available today, while
  301.    probably the best key distribution with RIPEM for now is to
  302.    automatically finger the recipient for a public key.
  303.  
  304.  * RIPEM conforms to the PEM RFCs and thus has a greater probability
  305.    of working with other PEM software.  PGP makes no attempt to be
  306.    compatible with anything other than itself; i.e. it's not a
  307.    "standard."
  308.  
  309.  * RIPEM uses RSAREF, a library of RSA routines from RSADSI which
  310.    comes with a license allowing noncommercial use.  PGP uses its own
  311.    implementation of RSA which is not licensed. (See: "DISCLAIMER")
  312.    (See: "What about RSADSI/PKP?")  There are rumors that a
  313.    PGP-compatible product implemented with RSAREF is in the works.
  314.  
  315.    Some various legal perspectives on using PGP in the U.S.:
  316.  
  317.    ``an illegal activity that violates patent and export law.''
  318.        - Jim Bidzos <jim@rsa.com>, President of PKP and RSADSI,
  319.       _Wired_ (the magazine), May/June 1993
  320.  
  321.    ``In fact, if you live in the USA, and you are not a Federal
  322.      agency, you shouldn't actually run PGP on your computer, because
  323.      Public Key Partners wants to forbid you from running my software.
  324.      PGP is contraband.''
  325.  
  326.        - Phil Zimmermann <prz@sage.cgd.ucar.edu>, author of PGP, PGP
  327.       Users' Guide, Volume 2.
  328.       Phil stopped being openly involved with PGP distribution
  329.       after being threatened with legal action by PKP.
  330.  
  331.    ``PKP can test the validity of its patent and recover its damages,
  332.      if any, in a suit against the developers and distributors of PGP,
  333.      if it cares to.  [ ... ]  It is virtually unheard-of to sue
  334.      individual end-use consumers of allegedly infringing technology.''
  335.  
  336.         - Eben Moglen <em21@cunixf.cc.columbia.edu>, Professor of Law
  337.       & Legal History, Columbia University, archived in
  338.       ftp.informatik.uni-hamburg.de:/pub/virus/misc/pgplegal.zip.
  339.       Note that PKP has, in fact, threatened some developers and
  340.       distributors who are within the reach of U.S. law;
  341.       generally, some agreement has been reached without going to
  342.       court.  This is why, for example, few U.S. FTP sites are
  343.       willing to carry PGP.
  344.  
  345.    ``Using PGP is like having a Morganti weapon; if "they" need a
  346.      reason to give you a hassle, "they" have one.  "They" can be the
  347.      legal authorities, your sysadmin, or just someone who wants to
  348.      make trouble for you.  [ ... ]  The tradeoffs should be
  349.      considered.''
  350.  
  351.     - Christopher Davis <ckd@eff.org>, System Manager &
  352.       Postmaster, Electronic Frontier Foundation & Kapor
  353.       Enterprises, Inc., id <CKD.93Mar18114533@loiosh.eff.org>.
  354.       Some system administrators have instructed their users that
  355.       using PGP on their systems is not permitted.
  356.  
  357.  * Both PGP and RIPEM are export-restricted, and may not be lawfully
  358.    sent outside the U.S. and Canada without an export license.
  359.    However, PGP is already used and available internationally.
  360.  
  361.  Whether you use PGP or RIPEM or whatever, the documentation to PGP is
  362.  recommended reading to anyone interested in such issues.  It
  363.  (separate from the software) is available by FTP in the directory
  364.  black.ox.ac.uk:/DOCS/security
  365.  
  366.  
  367.  I do not consider PGP and RIPEM to be in ``competition.''  The two
  368.  programs were designed with different guidelines and priorities, and
  369.  each does a reasonably decent job of doing what it was written to do.
  370.  The authors and users of both programs generally share the goal of
  371.  seeing widespread use of free cryptographic tools to enhance privacy
  372.  and security.  It is unfortunate that they cannot interoperate (yet).
  373.  
  374. 14)  What about RPEM?
  375.  
  376.  RPEM stands for Rabin Privacy Enhanced Mail.  It was similar to RIPEM,
  377.  but used a public-key cipher invented by Rabin (which is not RSA) in
  378.  an attempt to avoid the patents on public-key systems.  It was
  379.  written by Mark Riordan, who later wrote RIPEM.
  380.  
  381.  Its distribution was halted when, contrary to the beliefs of many
  382.  (including Rabin), PKP claimed that their patents were broad enough
  383.  to cover the cipher employed.  This claim is not universally
  384.  accepted, but was not challenged for pragmatic reasons.
  385.  
  386.  RPEM is not really used anymore.  It is not compatible with RIPEM or PGP.
  387.  
  388. 15)  What is MIME?
  389.  
  390.  MIME stands for Multipurpose Internet Mail Extensions, and is
  391.  described in RFC 1341.  You can find out about it in the newsgroup
  392.  comp.mail.mime; a FAQ exists on it.  How PEM should interact with
  393.  MIME is not yet entirely clear; some people use the stopgap solution
  394.  of having a MIME type application/x-ripem in order to send RIPEM
  395.  messages as MIME ones.  I hope some standards will emerge.  Draft
  396.  Internet documents exist on the matter.
  397.  
  398. 16)  What is TIS/PEM?
  399.  
  400.  Trusted Information System has a different implementation of PEM
  401.  called TIS/PEM.  It is integrated with MH 6.7 (though it doesn't need
  402.  to be used with it.)  It has its own FAQ, and is available via FTP
  403.  from ftp.tis.com.
  404.  
  405.